#include <stdio.h>

int areStringsEqual(char *a, char *b)
{
    char *p1 = a;
    char *p2 = b;
    while(*p1 != '\0' && *p2 != '\0')
    {
        if(*p1 != *p2)
        {
           return 0;
        }

        p1++;
        p2++;
    }

    return (*p1 == '\0' && *p2 == '\0') ? 1 : 0;
}

int main()
{
    const char *str1 = "hello";
    const char *str2 = "world";
    const char *str3 = "Hello";
    const char *str4 = "hello";

    printf("%d", areStringsEqual(str1,str2) ? "是" : "否");
    printf("%d", areStringsEqual(str1,str3) ? "是" : "否");
    printf("%d", areStringsEqual(str1,str4) ? "是" : "否");

    return 0;
}